﻿using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection.Emit;

namespace ZhiJiao.Models.Entities
{
    [Table("Members")]
    public class Member : BaseEntity
    {
        /// <summary>
        /// 会员等级
        /// </summary>
        public MemberLevel MemberLevel { get; set; }

        /// <summary>
        /// OpenID
        /// </summary>
        public string OpenID { get; set; }

        /// <summary>
        /// UnionID
        /// </summary>
        public string UnionID { get; set; }

        /// <summary>
        /// 姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 昵称
        /// </summary>
        public string NickName { get; set; }

        /// <summary>
        /// 头像Url
        /// </summary>
        public string HeadUrl { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 所属机构
        /// </summary>
        public Instruction Instruction { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        public long? InstrictionId { get; set; }

        /// <summary>
        /// 学生
        /// </summary>     
        public Student? Student { get; set; }

        /// <summary>
        /// 会员课程集合
        /// </summary>
        public List<MemberCourse>? Courses { get; set; }

        /// <summary>
        /// 会员测评集合
        /// </summary>
        public List<MemberEvaluation>? Evaluations { get; set; }
    }
};
